#!/usr/bin/env python3
# -*- coding:utf-8 -*-

import os
import sys

current_dir = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(current_dir)[0]
sys.path.append(rootPath)
from utils import read_config


# natapp -authtoken 85fc9177674c1254
def start():
    print('开始启动natapp')
    path = read_config.natapp_path
    authtoken = read_config.natapp_authtoken
    os.chdir(path.replace('\'', ''))
    print('natapp' + path)
    commend = 'natapp -authtoken ' + authtoken.replace('\'', '')
    print(commend)
    os.system(commend)


if __name__ == "__main__":
    print('')
    start()
